package com.jinbei.mapper;

import com.jinbei.domain.Authority;

import java.util.List;

/**
 * @author zflu
 */
public interface AuthorityMapper {

    /**
     * @author zflu
     * @Description 根据权限id删除权限
     * @date 2018-7-9 15:47:09
     * @param id
     * @return int
     */
    int deleteAuthorityById(Integer id);

    /**
     * @author zflu
     * @Description  权限新增
     * @date 2018-7-9 15:47:09
     * @param authority
     * @return int
     */
    int insertAuthority(Authority authority);

    /**
     * @author zflu
     * @Description 根据权限id查询权限
     * @date 2018-7-9 15:47:09
     * @param id
     * @return com.jinbei.domain.Authority
     */
    Authority queryAuthorityById(Integer id);

    /**
     * @author zflu
     * @Description  权限修改
     * @date 2018-7-9 15:47:09
     * @param authority
     * @return int
     */
    int updateAuthority(Authority authority);

    /**
     * @author zflu
     * @Description   日志记录分页列表
     * @date 2018/7/12 9:51
     * @param
     * @return java.util.List<com.jinbei.domain.Authority>
     */
    List<Authority> queryAuthorityPage();
}